package com.anxin.registerManagement.bean.persist;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("宿舍类")
public class Dormitory extends CommonData {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("宿舍id")
    private Integer id;

    @NotNull(message = "楼幢不能为空")
    @ApiModelProperty("楼幢，如20幢")
    private Integer building;

    @NotNull(message = "楼长不能为空")
    @ApiModelProperty("楼长id")
    private Integer dormitoryManagerId;

}
